package org.example;

import org.apache.shiro.crypto.hash.Md5Hash;

/**
 * @author objcat
 * @version 1.0
 * @description TestMd5
 * @date 2022/10/15 12:56
 */
public class TestMd5 {
    public static void main(String[] args) {
        // 创建md5算法
        Md5Hash md5Hash = new Md5Hash();
//        md5Hash.setBytes("123".getBytes());
//        System.out.println(md5Hash.toHex());

//        String password = "123456";
//        System.out.println(new Md5Hash(password, "666").toHex());

        String password = "123456";
        System.out.println(new Md5Hash(password, "666", 1024).toHex());
    }
}
